package com.oracle.zebrafreelytraveling.utils;

import com.facebook.common.references.SharedReference;
import com.google.gson.Gson;
import com.oracle.zebrafreelytraveling.App;
import com.oracle.zebrafreelytraveling.data.bean.User;
import com.oracle.zebrafreelytraveling.utils.SharePreUtil;
import com.oracle.zebrafreelytraveling.utils.StringUtil;

/**
 * Created by yydcnjjw on 2017/8/2.
 */

public class GsonUtil {

    private GsonUtil(){
    }

    private static Gson gson = new Gson();

    public static Gson getInstance(){
        synchronized (Gson.class){
            if (gson == null){
                gson = new Gson();
            }
        }
        return gson;
    }
}
